﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace CSF.BusinessCore.Service
{
    [ServiceContract]
    public interface IDataCodeKeyService<TEntity>
    {
        [OperationContract]
        bool UpdateByCode(TEntity t, string code);

        [OperationContract]
        bool DeleteOneByCode(string code);

        [OperationContract]
        int DeleteByCode(IEnumerable<string> codes);

        [OperationContract]
        bool Insert(TEntity entity);
    }
}
